import { createApp } from 'vue'
import '@/style.css'
import App from '@/App.vue'
import router  from "@/router/index.js";

//导入element-plus
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import {createPinia} from "pinia";

//创建一个应用
const app=createApp(App);
const pinia = createPinia();

app.use(pinia);
app.use(router);
//使用element-plus
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app');